try:
    import requests
    print("requests模块已安装")
except ImportError:
    print("requests模块未安装")
    
import json

resp = requests.get('https://static-data.gaokao.cn/www/2.0/proprovince/51/pro.json')

# print(resp.text)
# print("\n")
# print(resp.content.decode('utf-8'))
# print('\n')
# print(resp.json())

respDic = resp.json()

print(respDic['code'])
print(respDic['message'])
print(respDic['data'])

# jsonStr = json.dumps(resp.json())

